package com.punch.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punch.common.dto.order.OrderDTO;
import com.punch.order.model.OrderCourseSnapshot;


/**
 * <p>
 * 订单课程快照表 服务类
 * </p>
 *
 * @author wjj
 * @since 2020-12-09
 */
public interface OrderCourseSnapshotService extends IService<OrderCourseSnapshot> {

    /**
     * 创建三点半课程订单
     *
     * @param orderDTO 订单信息
     * @param userId   用户uid
     * @param orderId  订单id
     * @param orderSN  订单编号
     */
    void createOrderCourse(OrderDTO orderDTO, Long userId, Long orderId, String orderSN);

    /**
     * 是否报名
     *
     * @param classId   课程班级id
     * @param studentId 学生id
     * @return boolean
     */
    boolean isSignUp(Long classId, Long studentId);
}
